const Layout = () => import('@/layout/index.vue')

export default {
    path: '/unitPerformance',
    component: Layout,
    redirect: '/unitPerformance/unitPatrolPoint',
    name: 'unitPatrolPoint',
    meta: {
        title: '单位履责',
        icon: 'sidebar-menu'
    },
    children: [{
            path: 'unitPatrolPoint',
            name: 'unitPatrolPoint',
            component: () => import('@/views/sociolUnitMange/unitPatrolPoint.vue'),
            meta: {
                title: '巡查点管理'
            }
        }, {
            path: 'unitQrcode',
            name: 'unitQrcode',
            component: () => import('@/views/sociolUnitMange/unitQrcode.vue'),
            meta: {
                title: '二维码管理'
            },
        }, {
            path: 'unitTaskMange',
            name: 'unitTaskMange',
            component: () => import('@/views/sociolUnitMange/unitTaskMange.vue'),
            meta: {
                title: '任务管理'
            },
            children: [
                {
                    path: 'unitTaskMangeDetail',
                    name: 'unitTaskMangeDetail',
                    component: () => import('@/views/sociolUnitMange/unitTaskMangeDetail.vue'),
                    meta: {
                        sidebar: false,
                        title: '任务详情'
                    },children:[
                        {
                            path: 'unitPatrolPointDetailInfo',
                            name: 'unitPatrolPointDetailInfo',
                            component: () => import('@/views/sociolUnitMange/patrolPointDetailInfo.vue'),
                            meta: {
                                sidebar: false,
                                title: '巡查详情'
                            }
                        }
                    ]
                }
            ]
        },
        {
            path: 'patrolRules',
            name: 'patrolRules',
            component: () => import('@/views/sociolUnitMange/patrolRules.vue'),
            meta: {
                title: '巡查规则'
            },
        }
    ]
}
